From: Florian Müllner Date: Wed, 24 Feb 2010 20:46:00 +0000 (+0100) Subject: Simulate a focus-app change when leaving the overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10392 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ff01bf68fd3c13c8f281cdc098bb6d4053f4cb83;p=gnome-shell.git Simulate a focus-app change when leaving the overview When the currently focused app sends a notification while in the overview, the corresponding source icon is not removed when the overview is left. It does make some sense to treat the overview transition the same as a normal focus change, so we should update the summary view accordingly. --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index a0774b7f8..2977adcb9 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -103,6 +103,8 @@ NotificationDaemon.prototype = { Shell.WindowTracker.get_default().connect('notify::focus-app', Lang.bind(this, this._onFocusAppChanged)); + Main.overview.connect('hidden', + Lang.bind(this, this._onFocusAppChanged)); }, _acquiredName: function() { @@ -263,7 +265,8 @@ NotificationDaemon.prototype = { ]; }, - _onFocusAppChanged: function(tracker) { + _onFocusAppChanged: function() { + let tracker = Shell.WindowTracker.get_default(); Main.messageTray.removeSourceByApp(tracker.focus_app); },